package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;

public class RwResult extends Structure {
	
	public int tagNum;
	public TagResult[] tagResult = new TagResult[RaiLimit.MAX_TAG_NUM];
	
	{
		for(int i = 0; i < RaiLimit.MAX_TAG_NUM; i++)
		{
			tagResult[i] = new TagResult();
		}
	}

	public static class ByValue  extends RwResult implements Structure.ByValue{ }		
	public static class ByReference extends RwResult implements Structure.ByReference{ }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("tagNum");   
        a.add("tagResult");  
        return a;  
    }

	@Override
	public String toString() {
		return "RwResult [tagNum=" + tagNum + ", tagResult=" + Arrays.toString(tagResult) + "]";
	} 
    
    
}
